package college.dao;

import java.util.HashSet;
import java.util.Set;

/**
 * Student entity. @author MyEclipse Persistence Tools
 */

public class Student implements java.io.Serializable {

	// Fields

	private String htno;
	private Branch branch;
	private String name;
	private String section;
	

	private Integer year;
	private Integer sem;
	private Set attendances = new HashSet(0);
	private Set contactDetailses = new HashSet(0);
	private ContactDetails contactDetails;

	// Constructors

	public ContactDetails getContactDetails() {
		return contactDetails;
	}

	public void setContactDetails(ContactDetails contactDetails) {
		this.contactDetails = contactDetails;
	}

	/** default constructor */
	public Student() {
	}

	/** minimal constructor */
	public Student(String htno, Branch branch, String name, Integer year, String section,
			Integer sem) {
		this.htno = htno;
		this.branch = branch;
		this.name = name;
		this.year = year;
		this.sem = sem;
		this.section = section;
	}

	/** full constructor */
	public Student(String htno, Branch branch, String name, Integer year, String section,
			Integer sem, Set attendances, Set contactDetailses) {
		this.htno = htno;
		this.branch = branch;
		this.name = name;
		this.year = year;
		this.sem = sem;
		this.section = section;
		this.attendances = attendances;
		this.contactDetailses = contactDetailses;
	}

	// Property accessors

	public String getHtno() {
		return this.htno;
	}

	public void setHtno(String htno) {
		this.htno = htno;
	}

	public Branch getBranch() {
		return this.branch;
	}

	public void setBranch(Branch branch) {
		this.branch = branch;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getYear() {
		return this.year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public Integer getSem() {
		return this.sem;
	}

	public void setSem(Integer sem) {
		this.sem = sem;
	}

	public Set getAttendances() {
		return this.attendances;
	}

	public void setAttendances(Set attendances) {
		this.attendances = attendances;
	}

	public Set getContactDetailses() {
		return this.contactDetailses;
	}

	public void setContactDetailses(Set contactDetailses) {
		this.contactDetailses = contactDetailses;
	}
	public String getSection() {
		return section;
	}

	public void setSection(String section) {
		this.section = section;
	}

}